package com.yutian.selfservice.controller;

import com.yutian.selfservice.service.ServiceApplyService;
import com.yutian.selfservice.support.domain.ServiceApply;
import com.yutian.selfservice.support.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("service")
public class ServiceApplyController {
    @Autowired
    private ServiceApplyService serviceApplyService;

    @ResponseBody
    @PostMapping("/apply")
    public Result apply(ServiceApply serviceApply){
        return serviceApplyService.apply(serviceApply);
    }
}
